// API进行统一管理
import request from './request'

export const reqGetHotelList = (id) => { return request({ url: '/hotel_list', methods: 'GET', params: { id } }) }

export const reqGetCityList = () => { return request({ url: '/city_list', method: 'GET' }) }

export const reqGetHotelAll = () => { return request({ url: '/hotel_all', method: 'GET' }) }

export const reqGetHotelDetailInfo = (id) => { return request({ url: '/hotel_detailInfo', method: 'GET', params: { id } }) }

export const reqRegisterInfo = (data) => { return request({ url: '/register', data: data, method: 'POST' }) }

export const reqLoginPWD = (data) => { return request({ url: '/login_pwd', data: data, method: 'POST' }) }

export const reqLoginPhone = (phone) => { return request({ url: '/login_phone', data: { phone }, method: 'POST' }) }

export const reqGetBaseName = () => { return request({ url: '/hotel_base_name', method: 'GET' }) }

export const reqGetBaseRoomsInfo = (name) => { return request({ url: '/hotel_base_rooms', method: 'GET', params: { name } }) }

export const reqOrder = (data) => { return request({ url: '/order', data: data, method: 'POST' }) }

export const reqGetOrderInfo = (phone) => { return request({ url: '/getOrderInfo', method: 'GET', params: { phone } }) }

export const reqDelOrder = (id) => { return request({ url: '/delete_order', data: { id }, method: 'POST' }) }

export const reqIsRegister = (user_phone) => { return request({ url: '/isregister', method: 'GET', params: { user_phone } }) }
